package com.bdqn.qnnews.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName ap_article_config
 */
@TableName("ap_article_config")
@Data
@Schema(name = "ApArticleConfig 对象", description = "文章配置表")
public class ApArticleConfig implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "文章id")
    private Long articleId;

    @Schema(description = "是否可评论")
    @TableField("is_comment")
    private boolean comment;

    @Schema(description = "是否转发")
    @TableField("is_forward")
    private boolean forward;

    @Schema(description = "是否下架")
    @TableField("is_down")
    private boolean down;

    @Schema(description = "是否删除")
    @TableField("is_delete")
    private boolean delete;
}